// UniApp 专用配置文件
// 此配置适用于不使用 src 目录结构的 UniApp 项目

module.exports = {
  transpileDependencies: [],
  publicPath: './',
  outputDir: 'dist',
  lintOnSave: process.env.NODE_ENV === 'development',
  productionSourceMap: false,
  
  configureWebpack: {
    resolve: {
      alias: {
        '@': require('path').resolve(__dirname, '.')
      }
    }
  },
  
  css: {
    loaderOptions: {
      sass: {
        prependData: `@import "@/uni.scss";`
      },
      scss: {
        prependData: `@import "@/uni.scss";`
      }
    }
  }
}